package controller.action;

import java.io.File;

import model.service.ClassroomService;

import com.opensymphony.xwork2.ActionSupport;

public class SaveClassroom extends ActionSupport{
	private String result;
	private File file; 
	private String fileFileName;
	private String fileFileContentType;
	public String getFileFileName() {
		return fileFileName;
	}
	public void setFileFileName(String fileFileName) {
		this.fileFileName = fileFileName;
	}
	public String getFileFileContentType() {
		return fileFileContentType;
	}
	public void setFileFileContentType(String fileFileContentType) {
		this.fileFileContentType = fileFileContentType;
	}

	private ClassroomService classroomService;
	public String getResult() {
		return result;
	}
	public void setResult(String result) {
		this.result = result;
	}
	public File getFile() {
		return file;
	}
	public void setFile(File file) {
		this.file = file;
	}
	
	public ClassroomService getClassroomService() {
		return classroomService;
	}
	public void setClassroomService(ClassroomService classroomService) {
		this.classroomService = classroomService;
	}
	
	public String saveClassroom(){
		result = classroomService.ExcelUpload(file, fileFileName);
		return SUCCESS;
	}
}
